package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 新闻内容
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-29
 */
@TableName("t_news")
public class News extends Model<News> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long uid;

    /**
     * 标题
     */
	private String title;
	private String profile;
	private String vurl;
	private Integer vheight;
	private String vpixel;

	private String gname;

    /**
     * 新闻内容
     */
	private String info;

	private String tags;
	private String ntype;
	private String extra;

    /**
     * 引用图像
     */
	private String pic;
	private String photos;
	private String adimg;
	private String topath;
	private String sname;

	private Integer cid;
	private Integer state;

	private Integer views;
	private Integer zanshu;

	private Integer sharecout;
	private Integer zixuncout;

	@TableField("is_top")
	private Integer isTop;
	private Integer isvideo;

	private Long mid;
	private Long mpid;
	private Long sid;
	private Long leagueid;
	private Long gid;
	private Integer gtype;

	private Date createtime;
	private Date modifytime;
	private Long modifier;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getIsTop() {
		return isTop;
	}

	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public String getPhotos() {
		return photos;
	}

	public void setPhotos(String photos) {
		this.photos = photos;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getNtype() {
		return ntype;
	}

	public void setNtype(String ntype) {
		this.ntype = ntype;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getAdimg() {
		return adimg;
	}

	public void setAdimg(String adimg) {
		this.adimg = adimg;
	}

	public String getTopath() {
		return topath;
	}

	public void setTopath(String topath) {
		this.topath = topath;
	}

	public Integer getViews() {
		return views;
	}

	public void setViews(Integer views) {
		this.views = views;
	}

	public Integer getZanshu() {
		return zanshu;
	}

	public void setZanshu(Integer zanshu) {
		this.zanshu = zanshu;
	}

	public String getVurl() {
		return vurl;
	}

	public void setVurl(String vurl) {
		this.vurl = vurl;
	}

	public String getProfile() {
		return profile;
	}

	public void setProfile(String profile) {
		this.profile = profile;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public Integer getGtype() {
		return gtype;
	}

	public void setGtype(Integer gtype) {
		this.gtype = gtype;
	}

	public Integer getVheight() {
		return vheight;
	}

	public void setVheight(Integer vheight) {
		this.vheight = vheight;
	}

	public String getVpixel() {
		return vpixel;
	}

	public void setVpixel(String vpixel) {
		this.vpixel = vpixel;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public Integer getIsvideo() {
		return isvideo;
	}

	public void setIsvideo(Integer isvideo) {
		this.isvideo = isvideo;
	}

	public Integer getSharecout() {
		return sharecout;
	}

	public void setSharecout(Integer sharecout) {
		this.sharecout = sharecout;
	}

	public Integer getZixuncout() {
		return zixuncout;
	}

	public void setZixuncout(Integer zixuncout) {
		this.zixuncout = zixuncout;
	}

	public Long getLeagueid() {
		return leagueid;
	}

	public void setLeagueid(Long leagueid) {
		this.leagueid = leagueid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "News{" +
			"id=" + id +
			", title=" + title +
			", info=" + info +
			", pic=" + pic +
			", mid=" + mid +
			", uid=" + uid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
